package o;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

class bqn {
    bqn() {
    }

    static {
        ॱ();
    }

    public static void ˏ() {
    }

    private static synchronized void ॱ() {
        synchronized (bqn.class) {
            Context ˋ = ContentManager.getInstant().getContext();
            if (ˋ != null) {
                SharedPreferences ˏ = cfo.ˏ(ˋ, "EssentialApp", 0);
                if (ˏ.getInt("SP_DATA_VER", 0) == 0) {
                    Editor edit = ˏ.edit();
                    SharedPreferences sharedPreferences = ˋ.getSharedPreferences("is_flag", 0);
                    String string = sharedPreferences.getString("client_launch_version", "");
                    if (!string.isEmpty()) {
                        edit.putString("LAST_VER_HOMEPAGE_ENTER", string);
                    }
                    long j = sharedPreferences.getLong("enter_zjbb_last_time", 0);
                    if (j != 0) {
                        edit.putLong("LASG_TIME_ESSENTIALAPP_QUIT", j);
                    }
                    edit.putBoolean("HAS_WLAN_UPDATE_SHOWED", ˋ.getSharedPreferences("settingDB", 0).getBoolean("is_show_checkbox_in_zjbb", false));
                    edit.putInt("SP_DATA_VER", 1);
                    edit.apply();
                }
            }
        }
    }

    public static String ˎ() {
        return cfo.ˏ(ContentManager.getInstant().getContext(), "EssentialApp", 0).getString("LAST_VER_HOMEPAGE_ENTER", "");
    }

    public static long ˊ() {
        return cfo.ˏ(ContentManager.getInstant().getContext(), "EssentialApp", 0).getLong("LASG_TIME_ESSENTIALAPP_QUIT", 0);
    }
}
